package com.shop.milk_tea_shop.common;

/**
 * @author 俞静雯
 * @Description 接口请求状态码 枚举类
 * @date 2024-06-17  23:21
 */
public enum CodeEnum {
    SUCCESS("请求成功！"),
    EMPTY_PARAMS("参数为空！"),
    INVALID_PARAMS("无效参数！"),
    NO_PERMISSION("无权限！"),
    ERROR("程序错误："),
    UNKOWN_ERROR("未知错误，请重试！");

    private String msg;

    CodeEnum(String msg) {
        this.msg = msg;
    }

    public String getMsg(){
        return msg;
    }
}
